/*
 * @Author: your name
 * @Date: 2021-04-26 15:02:01
 * @LastEditTime: 2021-04-26 22:15:22
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \offer20k\项目代码\fantasticit\src\store\modules\commit.ts
 */
// 引入封装的接口
import {getComment} from '@/services'
import {makeAutoObservable} from 'mobx'
//引入
import { message} from 'antd';
class Comment{
    constructor(){
        makeAutoObservable(this)
    }
    // 评论成功的提示字段
     commentText =''
    // 评论
    async getComment(obj:any){
        let result = await getComment(obj)
        if(result.statusCode === 201){
            message.success('评论成功，已提交审核');
        }
    }
}
export default Comment

